const { defineConfig } = require('@vue/cli-service');
const path = require('path');  // 需要引入 path 模块
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  css: {
    loaderOptions: {
      scss: {
        additionalData: `@import "@/scss/variable.scss";` // 导入全局变量文件
      }
    }
  },
  configureWebpack: {
    resolve: {
      alias: {
        '@': path.resolve(__dirname, 'src') // 路径别名配置
      }
    }
  }
});
